﻿@model IEnumerable<dynamic>

<ul class="downloads">
@if(Model.Any())
{
    foreach(var i in Model)
    {
        <li class="@JDM.String(i.MimeType)"><a href="@Url.Action(Loc.Act("Download").Ctrl("Media").NoArea().Set(new
        {
            guid = JDM.Guid(i.Guid)
        }))">@String.Format("{0} ({1})", JDM.String(i.Name), Svc.DataSize((decimal)JDM.Decimal(i.Size)))</a></li>
    }
}
else
{
    <li class="empty"><span>@T(Res.In("Common").Of("Expr").Name("NoData"))</span></li>
}
</ul>